
#Metodo extraido do livro Learning Python
def intersect(seq1, seq2):

    res = []
    
    for x in seq1:

        if x in seq2:

            res.append(x)

    print (res)

intersect("SPAM", "SCAM")
intersect([1,6,5,8],[1,4,5,9])
    